#include <iostream>
#include "SManager.h"

int main()
{

    SDL_Window* w = SDL_CreateWindow("test",WINDOW_X,WINDOW_Y,WINDOW_WIDTH,WINDOW_HEIGHT,SDL_WINDOW_SHOWN);
    SDL_Renderer* render = SDL_CreateRenderer(w,-1,SDL_RENDERER_SOFTWARE);
    bool isRunning=true;
    SManager s;
    while (isRunning==true)
    {
        SDL_Event msg;
        if (SDL_PollEvent(&msg)!=0)
        {
            switch (msg.type)
            {
            case SDL_QUIT:
                isRunning=false;
                break;
            }
            s.event(&msg);
        }
        SDL_SetRenderDrawColor(render,255,255,255,0);
        SDL_RenderClear(render);
        s.render(render);
        SDL_RenderPresent(render);
    }

    return 0;
}
